<script setup lang="ts">
import bg from 'src/assets/previous-works/ABUIABACGAAgoZf2owYom8uiowQwgA84ygc.jpg'
import h5bg from 'src/assets/previous-works/ABUIABACGAAgupj2owYote6e5wYwoAs4gBQ.jpg'
import { pageBanner } from '~/api'

const { basicInfo } = storeToRefs(useTeamInfoStore())
const banner = ref({})

pageBanner({ scheduleId: basicInfo.value.scheduleId, bannerType: 'BEFORE_WORKS' }).then((res) => {
  banner.value = { bg: getAssetUrl(res.data[0]?.fileUrl) || bg, h5bg: getAssetUrl(res.data[1]?.fileUrl) || h5bg }
})
</script>

<template>
  <PageItem :bg="banner.bg" :h5bg="banner.h5bg" show-header :content-style="{ flex: 1 }">
    <div class="home-item" />
  </PageItem>
</template>

<style scoped>

</style>
